<div class="ribbon">
    <a href=""><span class="home fa fa-home"></span></a>
    <ol class="breadcrumb">
        <li>告警列表</li>
    </ol>
</div>



<div class="table-wrapper" style="height: 250px">
    <div class="toolbar">
        <form role="form">
            <div class="inline-group">
                <label class="input"><input type="text" class="form-control input-sm" ng-model="q.bottleNumber" ng-change="search()" placeholder="钢瓶编码"> </label>
                <label class="input"><input type="text" class="form-control input-sm" ng-model="q.srcUserId" ng-change="search()" placeholder="责任人"> </label>
                <label class="input">状态：</label>
                <label class="input"><select  ng-model="q.gasCynWarnStatus" ng-options="gasCynWarnStatus.value for gasCynWarnStatus in vm.gasCynWarnStatusList" class="form-control" ng-selected="" ng-change="search()"></select></label>
                <!--<label class="input"><input type="text" class="form-control input-sm" ng-model="q.liableDepartmentCode" ng-change="search()" placeholder="责任部门"> </label>-->
                <!--<span class="glyphicon glyphicon-calendar" ng-click="initDepartmentSelect()"></span>-->
                <button type="submit" class="btn btn-sm btn-primary" ng-click="search()"><i class="fa fa-search"></i> 搜索 </button>

                <!--<button type="button" class="btn btn-sm btn-success pull-right" ng-click="initPopUp()"><i class="fa fa-plus"></i> 新增钢瓶 </button>-->
            </div>
        </form>
    </div>
    <table class="table table-striped table-hover props table-sm">
        <thead>
        <tr>
            <th width="1%"></th>
            <th width="5%">序号</th>
            <th width="5%">告警单编号</th>
            <th width="5%">钢瓶编号</th>
            <th width="5%">钢瓶规格</th>
            <th width="5%">空重瓶</th>
            <th width="5%">钢瓶状态</th>
            <th width="5%">原责任人</th>
            <th width="5%">告警状态</th>
            <th width="10%">告警时间</th>
            <th width="10%">处理时间</th>
            <th width="10%">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="warning in vm.warningList">
            <td></td>
            <td class="message">{{$index+1+pager.pageSize*(pager.getCurPageNo()-1)}}</td>
            <td class="message">{{warning.id}}</td>
            <td class="message">{{warning.gasCylinder.number}}</td>
            <td class="message">{{warning.gasCylinder.spec.name}}</td>
            <td class="message">{{warning.gasCylinder.loadStatus.name}}</td>
            <td class="message">{{warning.gasCylinder.serviceStatus.name}}</td>
            <td class="message" title="姓名:{{warning.srcUser.name}}">{{warning.srcUser.userId}}</td>
            <td class="message">{{warning.gasCynWarnStatus.name}}</td>
            <td class="message">{{warning.createTime}}</td>
            <td class="message">{{warning.updateTime}}</td>
            <td class="operate">
                <button title="处理" ng-click="modify(warning)" type="button" class="btn btn-primary btn-outline btn-xs">
                    <i class="">处理</i>
                </button>
                <!--<button title="忽略" ng-click="delete(bottle)" type="button" class="btn btn-primary btn-outline btn-xs">-->
                    <!--<i class="">忽略</i>-->
                <!--</button>-->
            </td>
        </tr>
        </tbody>
    </table>
    <div ng-if="vm.bottleList.length == 0" nj-table-no-data></div>
    <div nj-pager pager="pager"></div>
</div>
